package com.woniuxy.member.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "couponClient",name="member",path="member")
public interface CouponClient {

    @GetMapping("/getStoreCoupon")
    public Result getStoreCoupon();

    @PostMapping("/giveCoupon")
    public Result giveCoupon(@RequestParam("couponId") Integer couponId);
}
